#!/usr/bin/env python
#--*-- coding:utf-8 --*--

'''
Copyright (C) 2009-2010 dbzhang800@gmail.com
All rights reserved.
''' 
import sys
try:
    from PySide import QtCore
except ImportError:
    from PyQt4 import QtCore
from comtypes.client import CreateObject, ShowEvents, PumpEvents

app = QtCore.QCoreApplication(sys.argv)
ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
print ie
connection = ShowEvents(ie)
print connection
sys.exit(app.exec_())
